package org.feign.consumer.controller;

import org.feign.consumer.service.ITestFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestFeignController {

	@Autowired
	ITestFeignService feignService;

    @GetMapping(value = "/testFeign")
    public String testFeign(String name) {
        return feignService.testFeign(name==null?"":name);
    }
}
